package eteam.aps.systeminterface.model.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Update;

import javax.validation.GroupSequence;
import javax.validation.constraints.NotBlank;
import java.io.Serializable;

@Data
@ApiModel(value = "日志信息")
@GroupSequence({Insert.class, Update.class, LogDto.class})
public class LogDto implements Serializable {
    @ApiModelProperty("日志ID")
    @NotBlank(message = "日志ID为空", groups = Update.class)
    private Long fid;
    //@ApiModelProperty("用户ID")
    //@NotBlank(message = "用户ID为空", groups = {Insert.class, Update.class})
    //private String fuserid;
    //@ApiModelProperty("用户姓名")
    //@NotBlank(message = "用户姓名为空", groups = {Insert.class, Update.class})
    //private String fusername;
    @ApiModelProperty("模块Id")
    @NotBlank(message = "模块Id为空", groups = {Insert.class, Update.class})
    private String fmoduleid;
    @ApiModelProperty("模块名称")
    @NotBlank(message = "模块名称为空", groups = {Insert.class, Update.class})
    private String fmodulename;
    @ApiModelProperty("操作，操作关键字")
    @NotBlank(message = "操作关键字为空", groups = {Insert.class, Update.class})
    private String foper;
    @ApiModelProperty("操作名称")
    @NotBlank(message = "操作名称为空", groups = {Insert.class, Update.class})
    private String fopername;
    @ApiModelProperty("数据ID")
    private String fdataid;
    @ApiModelProperty("描述")
    private String fdesc;
    //@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    //private Date flogtime;
    //@ApiModelProperty("操作IP地址")
    //private String fipaddress;
}
